package com.mall.Enum;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * @Description
 * @ClassName Sex
 * @Author cxx
 * @Date 2023/6/10 9:41
 * @Version 1.0
 */

public enum Sex {
    //0 女 1男
    WOMAN(0, "女"),
    MAN(1, "男");

    public Integer getSex() {
        return sex;
    }

    public String getValue() {
        return value;
    }

    @EnumValue
    private final Integer sex;

    private final String value;

    Sex(Integer sex, String value) {
        this.sex = sex;
        this.value = value;
    }
}
